s = input("请输入字符串")
d = {}
for i in s:
    temp = d.get(i,0)
    d[i] = temp + 1
print(d)